package com.lbssoft.datalink.model;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

/*
 * @ClassName:  BaseMsg   
 * @Description: 基本的消息类，所有消息继承此类
 * @author: Riven
 * @date:   2017年7月10日 上午9:46:00   
 *     
 * @Copyright: 2017 www.lbssoft.com Inc. All rights reserved. 
 */
public abstract class BaseMsg  implements Serializable {
    private static final long serialVersionUID = 1L;
    private MsgType type;
    //必须唯一，否者会出现channel调用混乱
    private String clientId;
    
    private String uniqueId;

    //初始化客户端id
    public BaseMsg() {
        this.clientId = Constants.getClientId();
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public MsgType getType() {
        return type;
    }

    public void setType(MsgType type) {
        this.type = type;
    }

	public String getUniqueId() {
		return uniqueId;
	}

	public void setUniqueId(String uniqueId) {
		this.uniqueId = uniqueId;
	}

}
